#pragma once
#include "CAnimal.h"
#include "CGrass.h"
#include "CMapp.h"
#include "CSheep.h"
#include "CWolf.h"
#include <opencv2\opencv.hpp>
#include <vector>
#include <iostream>

using namespace std;

class CEngin
{
public:
	CEngin();
	~CEngin();
	CMapp m_map;
	int m_grassloc[11][11];
	CGrass m_grass;
	IplImage *m_copybk;
	vector<CAnimal *>animalvec;
	void Init();
	void RandGenera();
//	void Eat(int n,int flag[9], vector<CGrass *>pgrass);
};

